package com.inspector.app.di.network.api;

import androidx.annotation.NonNull;

import com.example.commen.net.easyHttp.server.ReleaseServer;
import com.hjq.http.config.IRequestApi;


/**
 * 密码登录
 */
public class loginApi extends ReleaseServer implements IRequestApi {
    @NonNull
    @Override
    public String getApi() {
        return "/auth/v2/terminal/login";
    }

    private String username;
    private String password;

    public loginApi(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public final static class loginResult {

        private Integer code;
        private String message;
        private LoginInfo data;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public LoginInfo getData() {
            return data;
        }

        public void setData(LoginInfo data) {
            this.data = data;
        }


    }
}
